body,
div,
h1,
h2,
form,
fieldset,
input,
textarea,
footer,
p {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
}

body {
    background: #f5f5f5;
    color: gray;
}

p {
    font-size: 24px;
    color: #757575;
}

#wrap {
    width: 530px;
    margin: 20px auto 0;
    height: 1000px;
}

h1 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 35px;
    color: black;
}

#form {
    overflow: hidden;
    height: 447px;
    position: relative;
    top: 0px;
    transition: all 1s ease-in-out .3s;
}

#form::before {
    content: '';
    position: absolute;
    bottom: 128px;
    left: 0;
    background: url('https://img.alicdn.com/imgextra/i3/386715097/O1CN01gbdFW71nWTQoCoRPB_!!386715097.png');
    width: 530px;
    height: 317px;
}

#form::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    background: url('https://img.alicdn.com/imgextra/i2/386715097/O1CN01eU6NQw1nWTQkLk9kv_!!386715097.png');
    width: 530px;
    height: 259px;
}

#form.hide::after,
#form.hide::before {
    display: none;
}

#form:hover {
    height: 777px;
    top: -200px;
}

form {
    background: #fff;
    position: relative;
    top: 200px;
    overflow: hidden;
    height: 200px;
    width: 400px;
    margin: 0px auto;
    padding: 20px;
    border: 1px solid white;
    border-right: 3px;
    transition: all 1s ease-in-out .3s;
}

#form:hover form {
    height: 530px;
}

label {
    margin: 11px 20px 0 0;
    font-size: 15px;
    color: gray;
    text-transform: uppercase;
}

input[type=text],
textarea {
    font: 14px normal uppercase;
    color: dimgray;
    background: none;
    width: 380px;
    height: 37px;
    padding: 0 10px;
    margin: 0 0 10px 0;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
}

textarea {
    height: 80px;
    padding-top: 14px;
}

#form input[type=submit] {
    position: relative;
    font-size: 24px;
    color: gray;
    width: 300px;
    text-align: center;
    opacity: 0;
    background: none;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity 0.7s ease-in-out 0s;
}

#form:hover input[type=submit] {
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out 1.3s;
}